function A(){
    return new Promise((resolve, reject) => {
        setTimeout(()=>{
            resolve('A')
        },1000)
    })
}
function B(){
    return new Promise((resolve, reject) => {
        setTimeout(()=>{
            resolve('B')
        },500)
    })
}
function C(){
    return new Promise((resolve, reject) => {
        setTimeout(()=>{
            resolve('C')
        },1500)
    })
}
// Promise.race([A(),B(),C()]).then((res)=>{
//     console.log(res)
// })
// Promise.all([A(),B(),C()]).then((res)=>{
//     console.log(res)
// })
Promise.any([A(),B(),C()]).then((res)=>{
    console.log(res)
})